package com.renge.demo;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.renge.eduservice.entity.test.DemoData;

import java.util.Map;


public class ExeclListen  extends AnalysisEventListener<DemoData>{
    //一行一行读取excel内容
    @Override
    public void invoke(DemoData data, AnalysisContext context) {
        System.out.println(data);
    }
    //读取表头内容
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.print(headMap);
    }
    //读取完成之后
    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
